📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@netless/xml-js

Package Overview
Dependencies
Maintainers
12
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netless/xml-js

A converter between XML text and Javascript object / JSON text.

1.6.16
latest
Source
npm
Version published
Weekly downloads
1.5K
-33.99%
Maintainers
12
Weekly downloads
 
Created
Source

This fork moves "sax" to "devDependencies" and bundles it with rollup (rollup-plugin-node-polyfills).

(rollup-plugin-polyfill-node doesn't work, don't know why)

I also removed tests and coverage for faster setup. :sweat_smile:

Applied these useful forks:

Install: npm i @netless/xml-js.

Replace it in package.json:

"dependencies": {
  "xml-js": "npm:@netless/xml-js"
}

Replace it in vite.config.js:

export default defineConfig({
  alias: {
    "xml-js": "@netless/xml-js"
  }
})

Replace it in webpack.config.js

{
  "resolve": {
    "alias": {
      "xml-js": "@netless/xml-js"
    }
  }
}

Other ways: see how preact does.

Todo

  • Maybe replace sax with saxes.

Changelog

1.6.15

  • Transfer to @netless/.

1.6.14

  • Use named export, for tree shaking purpose.

Read the original README.

Keywords

XML

FAQs

Package last updated on 07 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts